﻿@model IEnumerable<StarcraftDemo4.Game>

@{
    ViewBag.Title = "moves";
}

<h2>moves</h2>

<fieldset>
    <legend>game</legend>
    <table id="gametbl">
    <tr><th><div class="display-label"> move number </div></th>
    <th><div class="display-label"> move description </div></th></tr>
    @{int i = 0;}
    @foreach (Game single in @Model)
    {
        i = i + 1;
    <tr>
      <td>
        @i
      </td>
      <td>
        @Html.Raw(@single.Move)
      </td>
    </tr>
    }
    </table>
</fieldset>
<p>
    @Html.ActionLink("back to list", "../Result") |
    @Html.ActionLink("back to home", "../Home") 
</p>
